/*** Eclipse Class Decompiler plugin, copyright (c) 2016 Chen Chao (cnfree2000@hotmail.com) ***/
package nc.bs.pf.changedir;

import nc.bs.framework.common.InvocationInfoProxy;
import nc.bs.pf.change.VOConversion;
import nc.ui.pub.ClientEnvironment;
import nc.vo.pf.change.UserDefineFunction;

public class CHGA3TO4D extends VOConversion {
	public String getAfterClassName() {
		return "nc.bs.ic.pub.pfconv.HardLockChgVO";
	}

	public String getOtherClassName() {
		return null;
	}

	public String[] getField() {
		if("1021".equals(InvocationInfoProxy.getInstance().getCorpCode())){
			return new String[] { "H_coperatorid->H_operid",
					"H_dbilldate->H_logDate", "H_pk_corp->H_pk_corp",
					"H_cdptid->H_ylbmid", "H_pk_calbody->H_gcbm",
					"H_coperatoridnow->H_operid", "H_cdispatcherid->H_sflbid",
					"B_pk_corp->B_pk_corp", "B_nshouldoutnum->B_flsl",
					"B_cwp->B_gxh", "B_cfreezeid->B_cfreezeid",
					"B_castunitid->B_fjldwid", "B_hsl->B_fjlhsl",
					"B_nshouldoutassistnum->B_fflsl", "B_cworkcenterid->B_gzzxid",
					"B_cworksiteid->B_tldid", "B_vproductbatchnum->H_pch",
					"H_cendreportid->H_pk_wr_bid", "H_cwarehouseid->B_ckckid",
					"B_cwarehouseid->B_ckckid", "H_cwhsmanagerid->B_kgyid",
					"B_cwhsmanagerid->B_kgyid", "B_vfree1->B_freeitemvalue1",
					"B_vfree2->B_freeitemvalue2", "B_vfree3->B_freeitemvalue3",
					"B_vfree4->B_freeitemvalue4", "B_vfree5->B_freeitemvalue5",
					"B_dbizdate->SYSDATE", "B_vbatchcode->B_pch",
					"B_vsourcebillcode->H_bljhdh",
					"B_csourcebillhid->H_pk_pickmid",
					"B_csourcebillbid->B_pk_pickm_bid", "B_cinvbasid->B_wlbmid",
					"H_vuserdef1->H_zdy1", "H_vuserdef2->H_zdy2",
					"H_vuserdef3->H_zdy3", "H_vuserdef4->H_zdy4",
					"H_vuserdef5->H_zdy5", "H_vuserdef6->H_zdy6",
					"H_vuserdef7->H_zdy7", "H_vuserdef8->H_zdy8",
					"H_vuserdef9->H_zdy9", "H_vuserdef10->H_zdy10",
					"H_vuserdef11->H_zdy11", "H_vuserdef12->H_zdy12",
					"H_vuserdef13->H_zdy13", "H_vuserdef14->H_zdy14",
					"H_vuserdef15->H_zdy15", "H_vuserdef16->H_zdy16",
					"H_vuserdef17->H_zdy17", "H_vuserdef18->H_zdy18",
					"H_vuserdef19->H_zdy19", "H_vuserdef20->H_zdy20",
					"B_vuserdef1->B_zdy1", "B_vuserdef2->B_zdy2",
					"B_vuserdef3->B_zdy3", "B_vuserdef4->B_zdy4",
					"B_vuserdef5->B_zdy5", "B_vuserdef6->B_zdy6",
					"B_vuserdef7->B_zdy7", "B_vuserdef8->B_zdy8",
					"B_vuserdef9->B_zdy9", "B_vuserdef10->B_zdy10",
					"B_vuserdef11->B_zdy11", "B_vuserdef12->B_zdy12",
					"B_vuserdef13->B_zdy13", "B_vuserdef14->B_zdy14",
					"B_vuserdef15->B_zdy15", "B_vuserdef16->B_zdy16",
					"B_vuserdef17->B_zdy17", "B_vuserdef18->B_zdy18",
					"B_vuserdef19->B_zdy19", "B_cvendorid->B_zdy20"};
		}else{
			return new String[] { "H_coperatorid->H_operid",
					"H_dbilldate->H_logDate", "H_pk_corp->H_pk_corp",
					"H_cdptid->H_ylbmid", "H_pk_calbody->H_gcbm",
					"H_coperatoridnow->H_operid", "H_cdispatcherid->H_sflbid",
					"B_pk_corp->B_pk_corp", "B_nshouldoutnum->B_flsl",
					"B_cwp->B_gxh", "B_cfreezeid->B_cfreezeid",
					"B_castunitid->B_fjldwid", "B_hsl->B_fjlhsl",
					"B_nshouldoutassistnum->B_fflsl", "B_cworkcenterid->B_gzzxid",
					"B_cworksiteid->B_tldid", "B_vproductbatchnum->H_pch",
					"H_cendreportid->H_pk_wr_bid", "H_cwarehouseid->B_ckckid",
					"B_cwarehouseid->B_ckckid", "H_cwhsmanagerid->B_kgyid",
					"B_cwhsmanagerid->B_kgyid", "B_vfree1->B_freeitemvalue1",
					"B_vfree2->B_freeitemvalue2", "B_vfree3->B_freeitemvalue3",
					"B_vfree4->B_freeitemvalue4", "B_vfree5->B_freeitemvalue5",
					"B_dbizdate->SYSDATE", "B_vbatchcode->B_pch",
					"B_vsourcebillcode->H_bljhdh",
					"B_csourcebillhid->H_pk_pickmid",
					"B_csourcebillbid->B_pk_pickm_bid", "B_cinvbasid->B_wlbmid",
					"H_vuserdef1->H_zdy1", "H_vuserdef2->H_zdy2",
					"H_vuserdef3->H_zdy3", "H_vuserdef4->H_zdy4",
					"H_vuserdef5->H_zdy5", "H_vuserdef6->H_zdy6",
					"H_vuserdef7->H_zdy7", "H_vuserdef8->H_zdy8",
					"H_vuserdef9->H_zdy9", "H_vuserdef10->H_zdy10",
					"H_vuserdef11->H_zdy11", "H_vuserdef12->H_zdy12",
					"H_vuserdef13->H_zdy13", "H_vuserdef14->H_zdy14",
					"H_vuserdef15->H_zdy15", "H_vuserdef16->H_zdy16",
					"H_vuserdef17->H_zdy17", "H_vuserdef18->H_zdy18",
					"H_vuserdef19->H_zdy19", "H_vuserdef20->H_zdy20",
					"B_vuserdef1->B_zdy1", "B_vuserdef2->B_zdy2",
					"B_vuserdef3->B_zdy3", "B_vuserdef4->B_zdy4",
					"B_vuserdef5->B_zdy5", "B_vuserdef6->B_zdy6",
					"B_vuserdef7->B_zdy7", "B_vuserdef8->B_zdy8",
					"B_vuserdef9->B_zdy9", "B_vuserdef10->B_zdy10",
					"B_vuserdef11->B_zdy11", "B_vuserdef12->B_zdy12",
					"B_vuserdef13->B_zdy13", "B_vuserdef14->B_zdy14",
					"B_vuserdef15->B_zdy15", "B_vuserdef16->B_zdy16",
					"B_vuserdef17->B_zdy17", "B_vuserdef18->B_zdy18",
					"B_vuserdef19->B_zdy19", "B_vuserdef20->B_zdy20"};
		}
	}

	public String[] getFormulas() {
		return new String[] {
				"H_cbilltypecode->\"4D\"",
				"H_fbillflag->\"2\"",
				"H_status->\"2\"",
				"H_cinventoryid->getColValue(\"bd_produce\",\"pk_invmandoc\",\"pk_produce\",H_pk_produce)",
				"H_cproviderid->iif(H_lylx==2,H_ksid,\"\")",
				"B_cinventoryid->getColValue(\"bd_produce\",\"pk_invmandoc\",\"pk_produce\",B_pk_produce)",
				"B_vproductbatch->toString(H_lydjh)",
				"B_noutnum->iif(H_KCCheckStatus==1,B_jhcksl,\"\")",
				"B_cfirsttype->iif(H_lylx==1,\"A2\",iif(H_lylx==2,\"61\",\"A3\"))",
				"B_cfirstbillhid->iif(H_lylx==0,H_pk_pickmid,H_lyid)",
				"B_cfirstbillbid->iif(H_lylx==1,\"\",iif(H_lylx==2,H_fbid,H_pk_pickm_bid))",
				"B_ccostobject->getColValue(\"bd_produce\",\"pk_invmandoc\",\"pk_produce\",H_pk_produce)",
				"B_isok->\"N\"",
				"B_csourcetype->\"A3\"",
				"B_cinventorycode->getColValue(\"bd_invbasdoc\",\"invcode\",\"pk_invbasdoc\",B_wlbmid)",
				"B_nplannedprice->getColValue(\"bd_produce\",\"jhj\",\"pk_produce\",B_pk_produce)" };
	}

	public UserDefineFunction[] getUserDefineFunction() {
		return null;
	}
}